function wanted_add_back(){
		$("#wanted_add").hide();
		$("#wanted_list").fadeIn();
	
}

function wantedSave(){
	var wjob = $("#wanted_add_job").val();
	var wnum= $("#wanted_add_num").val();
	var wplace = $("#wanted_add_place").val();
	var wtime = $("#wanted_add_time").val();
	var wdate = $("#wanted_add_date").val();
	if(wjob == ""){
		$("#wanted_add_error").html("招聘岗位不能为空！");
		return ;
	}
	if(wnum == ""){
		$("#wanted_add_error").html("招聘数量不能为空!");
		return ;
	}
	if(wplace == ""){
		$("#wanted_add_error").html("招聘地点不能为空!");
		return ;
	}
	if(wtime == ""){
		$("#wanted_add_error").html("招聘时间不能为空!");
		return ;
	}
	if(wdate == ""){
		$("#wanted_add_error").html("招聘日期不能为空!");
		return ;
	}
	$.ajax({
		url : "wanted/addWanted.sls",
		data : {"wjob":wjob,"wnum":wnum,"wplace":wplace,"wtime":wtime,"wdate":wdate},
		type : "post",
		dataType : "json",
		success : function(result){
			if(result.status == 0){
				$("#wanted_add_error").html("信息添加成功！");
				setTimeout(function(){window.location.href="toWanted.sls";},1000);
			}else if(result.status == 1){
				$("#wanted_add_error").html("添加失败！");
			}else {
				$("#wanted_add_error").html("系统出错！");
			}
		},
		error : function(){
			window.location.href="error.sls";
		}
	});
	
}